/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */



//$(document).ready(function(){
//alert("cerf");
//});    

// simple callback example
simpleCart.bind( 'beforeCheckout' , function( data ){
  data.formname = simpleCart.$("#fio").val();
  data.formemail = simpleCart.$("#mail").val();
  data.formadress = simpleCart.$("#adress").val();
  data.formphone = simpleCart.$("#phone").val();
  data.formcomment = simpleCart.$("#comment").val();
  data.formtest = simpleCart.$("#p").val();
});



simpleCart({
    checkout: { 
        type: "SendForm" , 
        url: "/wpress_siteorders.php" ,
        email: "virtuozrv@gmail.com.com",
        // http method for form, "POST" or "GET", default is "POST"
        method: "GET" , 

        // url to return to on successful checkout, default is null
        //success: "http://kruny.local/?page_id=2" , 

        // url to return to on cancelled checkout, default is null
        //cancel: "cancel.html" ,

        // an option list of extra name/value pairs that can
        // be sent along with the checkout data
        extra_data: {
          storename: "Bob's cool plumbing store",
          cartid: "12321321"
          
        }
    } 
});
simpleCart({
    currency: "UAH" // set the currency to pounds sterling
});


simpleCart.currency({
    code: "UAH" ,
    name: "UAH" ,
    symbol: " грн." ,
    delimiter: " " , 
    decimal: "," , 
    after: true ,
    accuracy: 2
});
